package tech.xiaozai.exam.service;

import org.springframework.transaction.annotation.Transactional;
import tech.xiaozai.common.CommonPage;
import tech.xiaozai.exam.bo.ExamQuestionBO;
import tech.xiaozai.exam.domain.ExamQuestionInfo;
import tech.xiaozai.exam.po.ExamQuestion;
import tech.xiaozai.exam.po.ExamSubject;

import javax.security.auth.Subject;
import java.util.List;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-10-07 11:29
 */
public interface ExamQuestionService {
    @Transactional(rollbackFor = Exception.class)
    void insert(ExamQuestionBO question);

    CommonPage<ExamQuestionBO> page(Integer pageNum, Integer pageSize, ExamQuestion question);

    ExamQuestionBO get(Long id);

    void update(ExamQuestionBO question);

    void delete(List<Long> ids);

    void batchInsert(List<ExamQuestionBO> questions);

    List<ExamSubject> getSubjects();
}
